import request from '@/utils/request'
export const addCart = (goodsId, goodsNum, goodsSkuId) => {
    return request.post('/cart/add', {
        goodsId,
        goodsNum,
        goodsSkuId,
    })
}

export const cartList = () => {
    return request.get('/cart/list')
}

//更新购物车商品数量
export const changeCount = (goodsId, goodsNum, goodsSkuId) => {
    return request.post('/cart/update', {
        goodsId,
        goodsNum,
        goodsSkuId
    })
}

export const delSelect = (cartIds) => {
    return request.post('/cart/clear', {
        cartIds
    })
}